package cn.lj.org.domain;

import cn.lj.base.domian.BaseDomain;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.ArrayList;
import java.util.List;

@Data
@NoArgsConstructor
@AllArgsConstructor
public class Department extends BaseDomain{
    /*部门编号*/
    private String sn;
    /*部门名称*/
    private String name;
    /*暂时不用：部门的上级分类层级id*/
    private Integer state;
    /*部门状态 0 正常 ，-1 停用*/
    private String dirPath;
    /*部门管理员，关联Employee表id*/
    private Long manager_id;
    /*关联Employee表的id*/
    private Employee manager;
    /*上级部门*/
    private Long parent_id;
    private Department parent;
    List<Department> children = new ArrayList<>();
}
